package com.supermarket.mapper;

import com.supermarket.entity.Purchase;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface PurchaseMapper {
    List<Purchase> findPurchaseAll();

    List<Purchase> findByPage();

    Integer findCount();

    void add(Purchase purchase);


    void deleteById(Integer purchaseID);

    void updatePurchase(Purchase purchase);

    void deleteByIds(Integer [] ids);

    List<Purchase> findByIds(Integer[] ids);

    void save(List<Purchase> cachedDataList);
}
